// Package repository
// @Author zhongxc
// @Date 2024/7/23 15:42:00
// @Desc
package repository

import (
	"context"
	"vben-admin/pkg/model"
)

type UserRepo interface {
	CreateUser(ctx context.Context, user *model.UserModel) error
	BatchDeleteById(ctx context.Context, ids []int64, data map[string]interface{}) error
	FindById(ctx context.Context, id int64) (*model.UserModel, error)
	FindByName(ctx context.Context, name string) (*model.UserModel, error)
	FindByMobile(ctx context.Context, mobile string) (*model.UserModel, error)
	GetUserList(ctx context.Context, userName string, status int32, deptId, page, limit int64) (map[string]interface{}, error)
	UpdateUserById(ctx context.Context, id int64, user map[string]interface{}) error
	FindUserByMobile(ctx context.Context, mobile string) (*model.UserModel, error)
}
